package kulstats;

import java.util.List;

import com.google.appengine.api.datastore.Key;

class Student extends User {
	private int points;
	
	public Student(Key Key, String Name, String UserID, String Mail, List<Course> Courses, Integer Points) {
		super(Key, Name, UserID, Mail, Courses, Points);
		points = Points;
	}
	
	public Student(Key Key, String Name, String UserID, String Mail, List<Course> Courses, Integer Points, String Main, String Side) {
		super(Key, Name, UserID, Mail, Courses, Points, Main, Side);
		points = Points;
	}
	/**
	 * @return the points of the student
	 */
	public int getpoints()
	{
		return points;
	}
	/**
	 * @param extra the points the student gained
	 */
	public void addPoints(int extra)
	{
		points += extra; 
	}
	
	
}